import request from '@/utils/request'
const api_name='/educms/bannerAdmin'

export default {
  getPageList(page,limit,searchObj) {
    return request({
      url: `${api_name}/${page}/${limit}`,
      method: 'get',
      params:searchObj
    })
  },
  removeById(id) {
    return request({
      url: `${api_name}/remove/${id}`,
      method: 'delete'
    })
  },
  save(crmBanner) {
    return request({
      url: `${api_name}/save`,
      method: 'post',
      data: crmBanner
    })
  },
  update(crmBanner) {
    return request({
      url: `${api_name}/update`,
      method: 'put',
      data: crmBanner
    })
  },
  getById(id) {
    return request({
      url: `${api_name}/get/${id}`,
      method: 'get'
    })
  },
}
